body {
    margin: 0;
    min-width: 1024px;
}

* {
    box-sizing: border-box;
}


p,h1,h2,a {
    margin: 0;
    text-decoration: none;
    color: black;
}

/* 上面是导航栏部分 */
nav { 
    display: flex;
    justify-content: space-between;
    height: 60px;
    padding: 0 20%;
    background-color: #182839;
    color: #fff;
}

nav ul {
    display: flex;    
    align-items: center;
    height: 100%;
    margin: 0;
    list-style-type: none;
}

nav ul li {
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul li:nth-of-type(1) {
    padding-right: 5px;
}

nav ul a {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
    color: white;
}

nav ul a:hover{
    background-color: #495057;
}

nav .logo {
    display: flex;
    align-items: center;   
    font-size: 24px;
    
}

nav .logo a{
    color: white;
    padding:20px;
}

/* 上面是导航栏部分 */

.main {
    display: flex;
    flex-direction: column;
    margin: 0 20%;
    border: 1px solid#9ca4ab6b;
    border-top: none;
}

/* 搜索框部分 */
.main .search {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 20px;
    border-bottom: 1px solid rgba(197, 197, 201, 0.678);

}

.main .search input[type=text] {
    width: 85%;    
    padding: 10px;
}

.main .search input[type=submit] {
    width: 13%;    
    padding: 10px;
}

/* 搜索框部分 */

/* 分类按钮部分 */
.main .display header {   
    margin: 20px 0;
    padding: 0 20px;
    height: 50px;
    border-bottom: 1px solid rgb(197, 197, 201);
}

.display header ul {
    display: flex;
    justify-content: space-around;
    height: 100%;
    margin: 0;
    padding-left: 0;
    list-style-type: none;
}

.display header ul li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: rgb(197, 197, 201);
    border: 1px solid rgb(197, 197, 201);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

#oncatagory {
    background-color: #fff;
    margin-bottom: -1px;
    border-bottom: 1px solid white;  
}

/* 分类按钮部分 */

.main .books {
    
    display: flex;
    flex-wrap: wrap;
    
    padding: 20px;
}

.main .books .book {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 1%;
    width: 25%;
    height: 280px;
}

.main .book a {
    width: 100%;
    height: 70%;
}

.main .book a img{
    width: 100%;
    height: 100%;
}


/* 搜索结果展示部分 */
.main .search .result{
    font-size: 32px; 
}


.main .display .head {
    width: 100%;
    display: flex;
    padding: 20px;
}

.main .display .head img{
    width: 45%;
    height: 450px;
    margin-right: 5%;
}

.main .display .head .info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}